﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F25 RID: 3877
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicEnterRoomCsReq : IMessage<RogueMagicEnterRoomCsReq>, IMessage, IEquatable<RogueMagicEnterRoomCsReq>, IDeepCloneable<RogueMagicEnterRoomCsReq>, IBufferMessage
	{
		// Token: 0x17003141 RID: 12609
		// (get) Token: 0x0600ADF5 RID: 44533 RVA: 0x001D6891 File Offset: 0x001D4A91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicEnterRoomCsReq> Parser
		{
			get
			{
				return RogueMagicEnterRoomCsReq._parser;
			}
		}

		// Token: 0x17003142 RID: 12610
		// (get) Token: 0x0600ADF6 RID: 44534 RVA: 0x001D6898 File Offset: 0x001D4A98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicEnterRoomCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003143 RID: 12611
		// (get) Token: 0x0600ADF7 RID: 44535 RVA: 0x001D68AA File Offset: 0x001D4AAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicEnterRoomCsReq.Descriptor;
			}
		}

		// Token: 0x0600ADF8 RID: 44536 RVA: 0x001D68B1 File Offset: 0x001D4AB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterRoomCsReq()
		{
		}

		// Token: 0x0600ADF9 RID: 44537 RVA: 0x001D68B9 File Offset: 0x001D4AB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterRoomCsReq(RogueMagicEnterRoomCsReq other) : this()
		{
			this.nextRoomType_ = other.nextRoomType_;
			this.curRoomIndex_ = other.curRoomIndex_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600ADFA RID: 44538 RVA: 0x001D68EA File Offset: 0x001D4AEA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterRoomCsReq Clone()
		{
			return new RogueMagicEnterRoomCsReq(this);
		}

		// Token: 0x17003144 RID: 12612
		// (get) Token: 0x0600ADFB RID: 44539 RVA: 0x001D68F2 File Offset: 0x001D4AF2
		// (set) Token: 0x0600ADFC RID: 44540 RVA: 0x001D68FA File Offset: 0x001D4AFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NextRoomType
		{
			get
			{
				return this.nextRoomType_;
			}
			set
			{
				this.nextRoomType_ = value;
			}
		}

		// Token: 0x17003145 RID: 12613
		// (get) Token: 0x0600ADFD RID: 44541 RVA: 0x001D6903 File Offset: 0x001D4B03
		// (set) Token: 0x0600ADFE RID: 44542 RVA: 0x001D690B File Offset: 0x001D4B0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurRoomIndex
		{
			get
			{
				return this.curRoomIndex_;
			}
			set
			{
				this.curRoomIndex_ = value;
			}
		}

		// Token: 0x0600ADFF RID: 44543 RVA: 0x001D6914 File Offset: 0x001D4B14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicEnterRoomCsReq);
		}

		// Token: 0x0600AE00 RID: 44544 RVA: 0x001D6922 File Offset: 0x001D4B22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicEnterRoomCsReq other)
		{
			return other != null && (other == this || (this.NextRoomType == other.NextRoomType && this.CurRoomIndex == other.CurRoomIndex && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AE01 RID: 44545 RVA: 0x001D6960 File Offset: 0x001D4B60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NextRoomType != 0U)
			{
				num ^= this.NextRoomType.GetHashCode();
			}
			if (this.CurRoomIndex != 0U)
			{
				num ^= this.CurRoomIndex.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AE02 RID: 44546 RVA: 0x001D69B8 File Offset: 0x001D4BB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AE03 RID: 44547 RVA: 0x001D69C0 File Offset: 0x001D4BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AE04 RID: 44548 RVA: 0x001D69CC File Offset: 0x001D4BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NextRoomType != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.NextRoomType);
			}
			if (this.CurRoomIndex != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.CurRoomIndex);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AE05 RID: 44549 RVA: 0x001D6A28 File Offset: 0x001D4C28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NextRoomType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NextRoomType);
			}
			if (this.CurRoomIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurRoomIndex);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AE06 RID: 44550 RVA: 0x001D6A80 File Offset: 0x001D4C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicEnterRoomCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NextRoomType != 0U)
			{
				this.NextRoomType = other.NextRoomType;
			}
			if (other.CurRoomIndex != 0U)
			{
				this.CurRoomIndex = other.CurRoomIndex;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AE07 RID: 44551 RVA: 0x001D6AD0 File Offset: 0x001D4CD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AE08 RID: 44552 RVA: 0x001D6ADC File Offset: 0x001D4CDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.CurRoomIndex = input.ReadUInt32();
					}
				}
				else
				{
					this.NextRoomType = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004687 RID: 18055
		private static readonly MessageParser<RogueMagicEnterRoomCsReq> _parser = new MessageParser<RogueMagicEnterRoomCsReq>(() => new RogueMagicEnterRoomCsReq());

		// Token: 0x04004688 RID: 18056
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004689 RID: 18057
		public const int NextRoomTypeFieldNumber = 4;

		// Token: 0x0400468A RID: 18058
		private uint nextRoomType_;

		// Token: 0x0400468B RID: 18059
		public const int CurRoomIndexFieldNumber = 15;

		// Token: 0x0400468C RID: 18060
		private uint curRoomIndex_;
	}
}
